/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package it.apuliait.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author Donatello
 * @generated
 */
public class TrasportoDocumentoSoap implements Serializable {
	public static TrasportoDocumentoSoap toSoapModel(TrasportoDocumento model) {
		TrasportoDocumentoSoap soapModel = new TrasportoDocumentoSoap();

		soapModel.setTrasportoId(model.getTrasportoId());
		soapModel.setNumeroTrasporto(model.getNumeroTrasporto());
		soapModel.setDataTrasporto(model.getDataTrasporto());
		soapModel.setLineaFatturaIDFK(model.getLineaFatturaIDFK());
		soapModel.setDocumentoIDFK(model.getDocumentoIDFK());

		return soapModel;
	}

	public static TrasportoDocumentoSoap[] toSoapModels(
		TrasportoDocumento[] models) {
		TrasportoDocumentoSoap[] soapModels = new TrasportoDocumentoSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static TrasportoDocumentoSoap[][] toSoapModels(
		TrasportoDocumento[][] models) {
		TrasportoDocumentoSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new TrasportoDocumentoSoap[models.length][models[0].length];
		}
		else {
			soapModels = new TrasportoDocumentoSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static TrasportoDocumentoSoap[] toSoapModels(
		List<TrasportoDocumento> models) {
		List<TrasportoDocumentoSoap> soapModels = new ArrayList<TrasportoDocumentoSoap>(models.size());

		for (TrasportoDocumento model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new TrasportoDocumentoSoap[soapModels.size()]);
	}

	public TrasportoDocumentoSoap() {
	}

	public long getPrimaryKey() {
		return _trasportoId;
	}

	public void setPrimaryKey(long pk) {
		setTrasportoId(pk);
	}

	public long getTrasportoId() {
		return _trasportoId;
	}

	public void setTrasportoId(long trasportoId) {
		_trasportoId = trasportoId;
	}

	public String getNumeroTrasporto() {
		return _numeroTrasporto;
	}

	public void setNumeroTrasporto(String numeroTrasporto) {
		_numeroTrasporto = numeroTrasporto;
	}

	public String getDataTrasporto() {
		return _dataTrasporto;
	}

	public void setDataTrasporto(String dataTrasporto) {
		_dataTrasporto = dataTrasporto;
	}

	public long getLineaFatturaIDFK() {
		return _lineaFatturaIDFK;
	}

	public void setLineaFatturaIDFK(long lineaFatturaIDFK) {
		_lineaFatturaIDFK = lineaFatturaIDFK;
	}

	public long getDocumentoIDFK() {
		return _documentoIDFK;
	}

	public void setDocumentoIDFK(long documentoIDFK) {
		_documentoIDFK = documentoIDFK;
	}

	private long _trasportoId;
	private String _numeroTrasporto;
	private String _dataTrasporto;
	private long _lineaFatturaIDFK;
	private long _documentoIDFK;
}